Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Sep 2001
Posts: 672
Member
Member
Offline
Joined: Sep 2001
Posts: 672
I need help to make this script automatically loop and not stop after its done scrolling. Upon load, I want it to begin scrolling and right now it doesn't.

http://www.gdevresources.com/Pages/Scripts/Dynamicscroller/DScroller.shtml

Its the SINGLE SCROLLER demo

any help to make it loop upon start and finish?

Sponsored Links
Joined: Sep 2001
Posts: 672
Member
Member
Offline
Joined: Sep 2001
Posts: 672
Ok well I figured that part out. However now -->

Everytime I click on Bold, Italic etc, in sentence 2 3 4 or whatever. The javascript command puts it in textarea 1 instead of 2 3 or 4.

How can I make it so that, if I click on Bold, Italic etc, the appropriate command will goto the appropriate textarea??

Code
<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function View(form) {
msg=open("","DisplayWindow","status=1,scrollbars=1");
msg.document.write(form.Text2.value);
}
function Generate(form) {
var txt="<html><HEAD><TITLE>"+form.Name.value+"</TITLE></HEAD>rn";
txt+="</font></body></html>";
form.Text2.value=txt;
}
function AddText(form, Action){
var AddTxt="";
var txt="";

if(Action==4) {
txt=prompt("Text to be made BOLD.","Text");
if(txt!=null)
AddTxt="<b>"+txt+"</b>";
}
if(Action==5) {
txt=prompt("Text to be italicized","Text");
if(txt!=null)
AddTxt="<i>"+txt+"</i>";
}
if(Action==6) AddTxt="rn

";
if(Action==7) AddTxt="
rn";
if(Action==8) AddTxt="<hr>rn";
if(Action==9) {
txt=prompt("URL for the link.","http://");
if(txt!=null){
AddTxt="<a href="+txt+">";
txt=prompt("Text to be show for the link","Text");
AddTxt+=txt+"</a>rn";
}
}
if(Action==10) {
txt=prompt("URL for graphic","URL");
if(txt!=null)
AddTxt="<img src="+txt+">rn";
}
if(Action==11) {
txt=prompt("Text to be made Underline.","Text");
if(txt!=null)
AddTxt="<u>"+txt+"</u>";
}

form.sent1.value+=AddTxt;

}

// End -->
</SCRIPT>
Code
	<table border='1' width='50%' align='left' cellspacing='1' cellpadding='3'>
<tr>
<td width='100' align='left'><b>$CONFIGURESENTENCE1</b></td>
<td width='240' colspan='2'>
<input type='button' value='Link' onClick='AddText(this.form,9);'>
<input type='button' value='Bold' onClick='AddText(this.form,4);'>
<input type='button' value='Italic' onClick='AddText(this.form,5);'>
<input type='button' value='Underline' onClick='AddText(this.form,11);'>
</td>
</tr>
<tr>
<td width='100' align='left'>$Sentence:</td>
<td width='160'>
<textarea name='sent1' rows='7' cols='33'>$sent1</textarea>
</td>
<td width='225'>$expsentence</td>
</tr>
<tr>
<td width='100' align='left'><b>$CONFIGURESENTENCE2</b></td>
<td width='240' colspan='2'>
<input type='button' value='Link' onClick='AddText(this.form,9);'>
<input type='button' value='Bold' onClick='AddText(this.form,4);'>
<input type='button' value='Italic' onClick='AddText(this.form,5);'>
<input type='button' value='Underline' onClick='AddText(this.form,11);'>
</td>
</tr>
[Linked Image]


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,834
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 722
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 11
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)